package com.aqie.appletserver.bean.request;

import lombok.Data;

@Data
public class VoiceRequest {
    private final boolean METHOD_RAW = false; // 默认以json方式上传音频文件
    //  填写网页上申请的appkey 如 $apiKey="g8eBUMSokVB1BHGmgxxxxxx"
    private final String APP_KEY = "v5GqPi2v6iv59pbmPN5bUCBH";

    // 填写网页上申请的APP SECRET 如 $SECRET_KEY="94dc99566550d87f8fa8ece112xxxxx"
    private final String SECRET_KEY = "yIRIcG1mfIXrB6jSI35fKZ1NImKDTlG6";

    // 需要识别的文件
    private String FILENAME = System.getProperty("user.dir")+"/data/16k-48000.m4a";

    // 文件格式, 支持pcm/wav/amr 格式，极速版额外支持m4a 格式
    private final String FORMAT = FILENAME.substring(FILENAME.length() - 3);


    private String CUID = "1234567JAVA";

    // 采样率固定值
    private final int RATE = 16000;

    private String URL;

    private int DEV_PID;

    private String SCOPE;

    // 极速版 参数
    {
        URL =   "https://vop.baidu.com/pro_api"; // 可以改为https
        DEV_PID = 80001;
        SCOPE = "brain_enhanced_asr";
    }
}
